package com.ysstech.common.entity;

import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统字典信息表
 * </p>
 *
 * @author lishuangliang
 * @since 2021-01-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("yss_dicvalue")
public class Dicvalue extends Model<Dicvalue> {

    private static final long serialVersionUID = 1L;
    @TableId("ID")
    private String id;
    /**
     * 字典编码
     */
    @TableId("CODE")
    private String code;
    /**
     * 字典值
     */
    @TableField("VALUE")
    private String value;
    /**
     * 字典名称
     */
    @TableField("NAME")
    private String name;
    /**
     * 字典显示信息
     */
    @TableField("SHOWMSG")
    private String showmsg;
    /**
     * 字典顺序
     */
    @TableField("SEQUENCE")
    private Integer sequence;
    /**
     * 字典类型
     */
    @TableField("FTYPE")
    private String ftype;

    /**
     * 状态
     */
    @TableField("STATUS")
    private Integer status;
    /**
     * 添加时间
     */
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    @TableField("ADD_TIME")
    private LocalDateTime addTime;

    /**
     * 添加用户
     */
    @TableField("ADD_USER")
    private String addUser;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    @TableField("EDIT_TIME")
    private LocalDateTime editTime;

    /**
     * 修改用户
     */
    @TableField("EDIT_USER")
    private String editUser;
    /**
     * 删除原因
     */
    @TableField("DELETE_REASON")
    private String deleteReason;

    @Override
    protected Serializable pkVal() {
        return null;
    }



    @TableField(exist = false)
    private String strStatus;
    @TableField(exist = false)
    private String selCode;
    @TableField(exist = false)
    private String selName;

}
